pkgname=gnome-menus2
pkgver=3.0.1
pkgrel=3
pkgdesc='Library for the Desktop Menu Specification (legacy version)'
arch="all"
url='http://www.gnome.org/'
license="LGPL"
depends="glib"
makedepends="gobject-introspection intltool python-dev glib-dev"
subpackages="$pkgname-dev"
source="http://ftp.gnome.org/pub/gnome/sources/${pkgname%2}/${pkgver%.*}/${pkgname%2}-${pkgver}.tar.bz2"

prepare() {
	default_prepare
	update_config_sub
	update_config_guess
}

build() {
    cd "$srcdir/${pkgname%2}-$pkgver"

    export PYTHON='/usr/bin/python2'
    ./configure --prefix='/usr' --sysconfdir='/etc' --localstatedir='/var' --disable-static
    make
}

package(){
    cd "$srcdir/${pkgname%2}-$pkgver"

    make -C libmenu DESTDIR="${pkgdir}" install
    make -C python DESTDIR="${pkgdir}" install
}
sha512sums="05eda56b741d7236b17276b3b208b8370ec8ff0db82e32a2c0adb84334c4d9365fe61dea08183858fb7c0093cf04a02ba1311483e3318dbe816a02c28f4198eb  gnome-menus-3.0.1.tar.bz2"
